//
//  Extension+Lable.swift
//  LGWeibo
//
//  Created by 李更 on 8/14/16.
//  Copyright © 2016 itcast. All rights reserved.
//

import UIKit

extension UILabel {
    
    
    convenience init(textColor:UIColor,textSize:CGFloat,maxWidth : CGFloat = 0){
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(textSize)
        
        if maxWidth > 0 {
            self.numberOfLines = 0
            self.preferredMaxLayoutWidth = maxWidth
        }
        
        
        
    }
    
    
    
}
